<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{:$i->title}</title>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
th { text-align:right; }
td { text-align:left; }
.color{ cursor:pointer; background:url({:$smarty.const.PUBLIC_DIR}/common/image/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50%;}
-->
</style>
</head>
<body>
<div class="wrapper">
  <div class="title shadow titleBg">
    <table width="100%" border="0" cellspacing="1">
      <tr>
        <td><h1> {:$i->title} </h1></td>
      </tr>
    </table>
  </div>
  <div class="content shadow">
    <form>
      <table width="100%" border="0" cellspacing="1">
        <tr>
          <th width="20%">文件保存路径规则：</th>
          <td width="80%">{:$smarty.const.PUBLIC_PATH}/upload/<input name="uploadPath" type="text" id="uploadPath" value="{:$i->data.uploadPath}" size="20" class="posted check inputLine" /> [<a href="#@" title="Y表示年,m表示月,d表示日" class="helpTip">?</a>]</td>
        </tr>
        <tr>
          <th width="20%">允许上传的文件类型：</th>
          <td width="80%"><input name="allowedTypes" type="text" id="allowedTypes" value="{:$i->data.allowedTypes}" size="60" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">允许上传的最大尺寸：</th>
          <td width="80%"><input name="maxSize" type="text" id="maxSize" value="{:$i->data.maxSize}" size="10" class="posted check inputLine" />KB</td>
        </tr>
        <tr>
          <th width="20%">图片最大宽度：</th>
          <td width="80%"><input name="width" type="text" id="width" value="{:$i->data.width}" size="10" class="posted check inputLine" />px</td>
        </tr>
        <tr>
          <th width="20%">图片最大高度：</th>
          <td width="80%"><input name="height" type="text" id="height" value="{:$i->data.height}" size="10" class="posted check inputLine" />px</td>
        </tr>
        <tr>
          <th width="20%">缩略图默认宽度：</th>
          <td width="80%"><input name="thumbWidth" type="text" id="thumbWidth" value="{:$i->data.thumbWidth}" size="10" class="posted check inputLine" />px</td>
        </tr>
        <tr>
          <th width="20%">缩略图默认高度：</th>
          <td width="80%"><input name="thumbHeight" type="text" id="thumbHeight" value="{:$i->data.thumbHeight}" size="10" class="posted check inputLine" />px</td>
        </tr>
        <tr>
          <th width="20%">缩略图填充颜色：</th>
          <td width="80%"><input name="thumbPadColor" type="text" id="thumbPadColor" style="color:{:$i->data.thumbPadColor}" onclick="$(this).colorpicker();" value="{:$i->data.thumbPadColor}" size="7" class="posted check color" /></td>
        </tr>
        <tr>
          <th width="20%">缩略图识别标志：</th>
          <td width="80%"><input name="thumbMarker" type="text" id="thumbMarker" value="{:$i->data.thumbMarker}" size="20" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印类型：</th>
          <td width="80%">
          <label><input name="wmType" class="noBorder posted" type="radio" value="overlay"{:if $i->data.wmType == 'overlay'} checked="checked"{:/if} />图片</label> 
          <label><input name="wmType" class="noBorder posted" type="radio" value="text"{:if $i->data.wmType == 'text'} checked="checked"{:/if} />文字</label> 
          <label><input name="wmType" class="noBorder posted" type="radio" value="0"{:if $i->data.wmType == '0'} checked="checked"{:/if} />无</label>
          </td>
        </tr>
        <tr>
          <th width="20%">水印文字：</th>
          <td width="80%"><input name="wmText" type="text" id="wmText" value="{:$i->data.wmText}" size="40" class="posted check" />
           [<a href="#@" title="水印支持的文字以字体文体而定<br />如：上传中文字体文件后即可支持中文" class="helpTip">?</a>]</td>
        </tr>
        <tr>
          <th width="20%">水印字体文件路径：</th>
          <td width="80%">{:$smarty.const.SYS_PATH}/data/font/<input name="wmFontPath" type="text" id="wmFontPath" value="{:$i->data.wmFontPath}" size="20" class="posted check inputLine" /></td>
        </tr>
        <tr>
          <th width="20%">水印文字颜色：</th>
          <td width="80%"><input name="wmFontColor" type="text" id="wmFontColor" onclick="$(this).colorpicker();" style="color:{:$i->data.wmFontColor}" value="{:$i->data.wmFontColor}" size="7" class="posted check color" /></td>
        </tr>
        <tr>
          <th width="20%">水印文字阴影颜色：</th>
          <td width="80%"><input name="wmShadowColor" type="text" id="wmShadowColor" onclick="$(this).colorpicker();" style="color:{:$i->data.wmShadowColor}" value="{:$i->data.wmShadowColor}" size="7" class="posted check color" /></td>
        </tr>
        <tr>
          <th width="20%">水印字体大小：</th>
          <td width="80%"><input name="wmFontSize" type="text" id="wmFontSize" value="{:$i->data.wmFontSize}" size="5" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印文字阴影距离：</th>
          <td width="80%"><input name="wmShadowDistance" type="text" id="wmShadowDistance" value="{:$i->data.wmShadowDistance}" size="5" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印水平偏移：</th>
          <td width="80%"><input name="wmHorOffset" type="text" id="wmHorOffset" value="{:$i->data.wmHorOffset}" size="5" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印垂直偏移：</th>
          <td width="80%"><input name="wmVrtOffset" type="text" id="wmVrtOffset" value="{:$i->data.wmVrtOffset}" size="5" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印边距调整：</th>
          <td width="80%"><input name="wmPadding" type="text" id="wmPadding" value="{:$i->data.wmPadding}" size="5" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印图片路径：</th>
          <td width="80%">{:$smarty.const.SYS_PATH}/data/mark/<input name="wmOverlayPath" type="text" id="wmOverlayPath" value="{:$i->data.wmOverlayPath}" size="20" class="posted check inputLine" /></td>
        </tr>
        <tr>
          <th width="20%">水印透明度：</th>
          <td width="80%"><input name="wmOpacity" type="text" id="wmOpacity" value="{:$i->data.wmOpacity}" size="5" class="posted check" /></td>
        </tr>
        <tr>
          <th width="20%">水印水平位置：</th>
          <td width="80%">
          <label><input name="wmHorAlignment" class="noBorder posted" type="radio" value="L"{:if $i->data.wmHorAlignment == 'L'} checked="checked"{:/if} />左</label> 
          <label><input name="wmHorAlignment" class="noBorder posted" type="radio" value="C"{:if $i->data.wmHorAlignment == 'C'} checked="checked"{:/if} />中</label> 
          <label><input name="wmHorAlignment" class="noBorder posted" type="radio" value="R"{:if $i->data.wmHorAlignment == 'R'} checked="checked"{:/if} />右</label>
          </td>
        </tr>
        <tr>
          <th width="20%">水印垂直位置：</th>
          <td width="80%">
          
          <label><input name="wmVrtAlignment" class="noBorder posted" type="radio" value="T"{:if $i->data.wmVrtAlignment == 'T'} checked="checked"{:/if} />上</label> 
          <label><input name="wmVrtAlignment" class="noBorder posted" type="radio" value="M"{:if $i->data.wmVrtAlignment == 'M'} checked="checked"{:/if} />中</label> 
          <label><input name="wmVrtAlignment" class="noBorder posted" type="radio" value="B"{:if $i->data.wmVrtAlignment == 'B'} checked="checked"{:/if} />下</label>
          </td>
        </tr>
        
        <tr>
          <th>&nbsp;</th>
          <td><input type="submit" id="submit" value=" 修 改 " /></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/tooltip.css" rel="stylesheet" type="text/css" />
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.core.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.draggable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.resizable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.dialog.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.tooltip.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.post.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/common.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.colorpicker.js"></script>
<script language="javascript" type="text/javascript">

$(document).ready(function(){
	
	$(".helpTip").tooltip({cssClass:"tooltip", xOffset:30, opacity:5});
	
	$("form").post({
		sendUrl:'{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/update'
	});
});

</script>
</body>
</html>
